<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String ctxPath = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ ctxPath + "/";
	String SYSTEM_NAME = "EZ医学考试网";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'add_user.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<base id="baseUrl" href="<%=basePath%>"/>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>
<link href="<%=basePath%>css/bootstrap.min.css?v=3.4.0"
	rel="stylesheet">
<link href="<%=basePath%>css/font-awesome.min.css?v=4.3.0"
	rel="stylesheet">

<!-- Data Tables -->
<link href="<%=basePath%>css/animate.min.css" rel="stylesheet">
<link href="<%=basePath%>css/style.min.css?v=3.0.0" rel="stylesheet">
<body>
	<form action="order/add_order" method="post" id="formId">
	<div class="col-md-12">
	<div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">平台：</label>
        <div class="col-sm-10">
             <select class="form-control" required="" name="order.ec_id">
		         <option value="">请选择</option>
		         <c:forEach items="${ecommerces}" var="ecommerce">
					<option value="${ecommerce.id}" ${ecommerce.id== order.ec_id ? 'selected="selected"' : '' }>${ecommerce.e_commerce}</option>
     		     </c:forEach>
		      </select>
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">填单人：</label>
        <div class="col-sm-10">
            <input type="text"  class="form-control" placeholder="" readonly="readonly"  value="${order.user.u_name}">
            <input type="hidden" name="order.u_id" value="${order.user.u_id}">
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">账号：</label>
        <div class="col-sm-10">
            <input type="text" name="order.ec_name" value="${order.ec_name}" class="form-control" placeholder="">
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">密码：</label>
        <div class="col-sm-10">
            <input type="text" name="order.ec_pwd" value="${order.ec_pwd }" autocomplete="off" class="form-control"  placeholder="">
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">收货人姓名：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.customer_name }" autocomplete="off" name="order.customer_name" required="" placeholder="请输入收货人姓名" >
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">状态：</label>
        <div class="col-sm-10">
             <select class="form-control" required="" name="order.static">
		         <option value="">请选择</option>
		         <option value="未下单" ${order.static== "未下单" ? 'selected="selected"' : '' }>未下单</option>
		         <option value="已下单" ${order.static== "已下单" ? 'selected="selected"' : '' }>已下单</option>
		      </select>
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">收货人电话：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.customer_tel }" autocomplete="off" name="order.customer_tel" required="" placeholder="请输入收货人电话" >
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">收货人地址：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.customer_address }" autocomplete="off" name="order.customer_address" required="" placeholder="请输入收货人地址" >
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">商品名称：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.goods_name }" autocomplete="off" name="order.goods_name" required="" placeholder="请输入商品名称" >
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">商品单价：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.RMB }" autocomplete="off" name="order.RMB" required="" placeholder="请输入商品单价" >
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">商品数量：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.amount }" autocomplete="off" name="order.amount" required="" placeholder="请输入数量" >
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">商品链接：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.goods_url }" autocomplete="off" name="order.goods_url" required="" placeholder="商品链接" >
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">备注：</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${order.note }" name="order.note"  placeholder="请填写备注">
        </div>
    </div>
</div> 
<div class="col-md-12" style="text-align: center; margin-bottom: 10px">
<button type="submit" class="btn btn-primary"><i class="fa fa-check"></i> 提交</button>
</div>
</form>
</body>
<script src="<%=basePath %>js/jquery-2.1.1.min.js"></script>
<script src="<%=basePath %>js/bootstrap.min.js?v=3.4.0"></script>
<script src="<%=basePath %>js/plugins/jeditable/jquery.jeditable.js"></script>
<script type="text/javascript">
</script>
</html>
